<?php

/**
 * Online actions.
 *
 * @package    Myplugin
 * @subpackage Online
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
 */
class zdOnlineActions extends sfActions
{
  /**
   * Executes index action
   *
   */
  public function executeCallonline()
  {
  if($this->getContext()->getUser()->isAuthenticated())
    {
        $user =  $this->getContext()->getUser()->getProfile();
        $user->setIsOnline(true);
        $user->setTime(time());
        $user->save();

   
    }
  	return sfView::NONE;
  }
  

  
}
